﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using SbsSW.SwiPlCs;

namespace Prolog
{
    class Program
    {
        static void Main()
        {
            //Environment.SetEnvironmentVariable("SWI_HOME_DIR", @"the_PATH_to_boot32.prc");
            Environment.SetEnvironmentVariable("SWI_HOME_DIR", @"C:\\Program Files\\swipl");
            
            if (!PlEngine.IsInitialized)
            {
                String[] param = { "-q" }; /// không hiển thị thông tin về prolog
                PlEngine.Initialize(param);
                
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Form1());
                PlEngine.PlCleanup();
            }
        }
    }
}
